package cn.yunhe.service.impl;

import cn.yunhe.dao.HouseDao;
import cn.yunhe.model.House;
import cn.yunhe.service.HouseBiz;

import java.util.List;

public class HouseBizImpl implements HouseBiz {
    private HouseDao houseDao;
    @Override
    public boolean insertHouse(House house) {
        return houseDao.insertHouse(house);
    }

    @Override
    public boolean updateHouse(House house) {
        return houseDao.updateHouse(house);
    }

    @Override
    public boolean deleteHouse(int hid) {
        return houseDao.deleteHouse(hid);
    }

    @Override
    public House getById(int hid) {
        return houseDao.getById(hid);
    }

    @Override
    public List<House> searchHouse(String hql) {
        return houseDao.searchHouse(hql);
    }

    @Override
    public List<House> searchHouse(House house) {
        return houseDao.searchHouse(house);
    }

    public HouseDao getHouseDao() {
        return houseDao;
    }

    public void setHouseDao(HouseDao houseDao) {
        this.houseDao = houseDao;
    }
}
